package com.egao.common.module.cms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.io.Serializable;

/**
 * (SelectedColumn)选调专栏实体类
 *
 * @author dl
 * @since 2021-04-26 13:50:33
 */
@ApiModel(description = "选调专栏")
@TableName("selected_column")
@Data
public class SelectedColumn implements Serializable {
    private static final long serialVersionUID = 390040704665209575L;
    /**
     * 编号
     */

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 标题
     */
    @ApiModelProperty("标题")
    private String title;
    /**
     * 内容
     */
    @ApiModelProperty("内容")
    private Object content;
    /**
     * 发布人
     */
    @ApiModelProperty("发布人")
    private Integer createBy;

    @ApiModelProperty("点击量")
    private Integer hits;
    /**
     * 添加时间
     */
    @ApiModelProperty("发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date createTime;
    /**
     * 编辑时间
     */
    @ApiModelProperty("修改时间")
    private Date updateTime;
    /**
     * 逻辑删除 0正常 1删除
     */
    @ApiModelProperty("是否删除 0否 1是")
    @TableLogic
    private Integer deleted;
}
